#include <stdio.h>
void put_arr1(int*p,int row,int col);
int main(void)
{	
	int arr[][3] = {{1,2,3},{4,5,6},{7,8,9}};
	put_arr1(arr[0],3,3);
	return 0;
}
void put_arr1(int*p,int row,int col)
{
	int length = row * col;
	for(int i = 0;i < length;i++)
	{
		printf("arr[%d][%d] = %d;  ",i / col,i % col,*(p + i));
		if(i > 0 && (i % col) == (col - 1))
		{
			printf("\n");
		}
	}
}
